package com.sskj.postar.repository;

import com.sskj.postar.model.Stock;
import org.springframework.data.repository.CrudRepository;

public interface StockRepository extends CrudRepository<Stock, Long>{
//    @Transactional
//    @Modifying(clearAutomatically = true)
//    @Query("update Stock stock set stock.count =stock.count-1 where stock.id =:stockId")
//    void buy(@Param("stockId") Long stockId);
}
